//
//  SQLiteManager.swift
//  BaoKeSwift
//
//  Created by duan on 02/10/2017.
//  Copyright © 2017 geek-duan. All rights reserved.
//

import Foundation
import FMDB

class SQLiteManager {
    
    static let shared = SQLiteManager()
    
    /// - 数据库队列
    let queue: FMDatabaseQueue
    
    private init(dbName: String = "BaokeLocal.db") {
        
        var path = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0]
        path = (path as NSString).appendingPathComponent(dbName)
        
        queue = FMDatabaseQueue(path: path)
        
        print(path)
    }
}

// MARK: - 用户信息存储相关
extension SQLiteManager {
    
}


